package com.cares.event.dao;

import java.util.List;

import com.cares.event.dto.EventExecutionDto;
import com.cares.event.entity.TEventExecution;

/**
 * 流程实例运行dao
 * @author xuji
 *
 */
public interface EventExecutionDao {

	
	/**
	 * 查询流程实例运行
	 */
	public TEventExecution getEventExecution(long executionId);

	/**
	 * 保存流程实例运行
	 * @param jsflowProcessVO
	 */
	public void saveEventExecution(TEventExecution eventExecutionVO);
	
	/**
	 * 更新流程实例运行
	 * @param jsflowProcessVO
	 */
	public void updateEventExecution(TEventExecution tEventExecution);
	
	/**
	 * 删除流程实例运行
	 * @param executionId
	 */
	public void deleteEventExecution(long executionId);
	
	/**
	 *查找指定事件流的活动任务
	 * @param jsflowProcessVO
	 */
	public List<TEventExecution> queryEventExecutions(EventExecutionDto eventExecutionDto);
	
	/**
	 *查找所以事件流的活动任务
	 * @param jsflowProcessVO
	 */
	public List<TEventExecution> queryAllEventExecutions();
}
